package com.architecture.core.service;

import com.architecture.core.CoreCycleInterface;
import com.architecture.core.dao.BaseDAO;
import org.apache.log4j.Logger;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * Created with Aguang
 * LoginAction: Administrator
 * Date: 12-5-7
 * Time: 下午2:30
 * 此层属于服务层，业务逻辑基本都在这一层内，一个功能块相当于对应于一个Service类
 */
@Transactional(propagation = Propagation.REQUIRED, readOnly = true, timeout = 30)
public abstract class AbstractService implements CoreCycleInterface {
    protected final Logger logger = Logger.getLogger(this.getClass());

    @Resource
    protected BaseDAO baseDAO;

    @Override
    public void init() {
        //To change body of implemented methods use File | Settings | File Templates.
    }

    @Override
    public void destroy() {
        //To change body of implemented methods use File | Settings | File Templates.
    }

}
